package com.ssm.studen.service.impl;

import com.ssm.studen.dao.PermissionDao;
import com.ssm.studen.model.Permission;
import com.ssm.studen.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 权限表：
 *       实现业务及流程接口当中的内容
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionDao permissionDao;


    /**
     * 权限表查询
     * @param psnum
     * @return
     */
    @Override
    public List<Permission> selectPermission(int psnum) {
        List<Permission> list = permissionDao.selectPermission(psnum);
        return list;
    }
}
